# pip install speech -i https://mirrors.aliyun.com/pypi/simple/
# pip install pywin32 -i https://mirrors.aliyun.com/pypi/simple/
import speech

while True:
    try:
        print("程序开始")
        # say = speech.input()
        say = "退出"
        print(say)
        speech.say(say)
        if say == "你好":
            speech.say("你好")
        elif say == "退出":
            speech.say("退出")
            break
        else:
            print("你说啥呢？")
    except Exception as e:
        print(f"识别出错: {e}")
